package com.jn.rxjava.views;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.jn.rxjava.R;

public class WeatherDetailActivity extends AppCompatActivity {
    private TextView weatherDetailTextView;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_weather_detail);

        weatherDetailTextView = findViewById(R.id.weather_detail_text_view);

        // 从 Intent 中获取传递的天气数据
        String weatherData = getIntent().getStringExtra("weatherData");
        if (weatherData != null) {
            weatherDetailTextView.setText(weatherData);
        }
    }
}
